package com.newsplatform.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 新闻请求DTO
 * 
 * @author Logan.Li
 */
@Data
public class NewsRequest {
    
    @NotBlank(message = "标题不能为空")
    private String title;
    
    private String summary;
    
    @NotBlank(message = "内容不能为空")
    private String content;
    
    private String coverImage;
    
    @NotNull(message = "分类不能为空")
    private Long categoryId;
    
    private Integer status;
    
    private Integer isTop;
    
    private String desc;
    
}
